package com.michael.study.jetpack.module.databinding

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class ProfileViewModel : ViewModel() {

    private val _name = MutableLiveData("liu")
    private val _lastName = MutableLiveData("guoquan")

    val name : LiveData<String> = _name
    val lastName : LiveData<String> = _lastName

    fun update() {
        _name.value = "zhang"
        _lastName.value = "xiaoyu"
    }

}